package com.yhsoft.buyer.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yhsoft.bill.controller.po.CountMapPo;
import com.yhsoft.buyer.controller.response.OrdersDyOutVo;
import com.yhsoft.buyer.controller.response.VenderOrdersOutVo;
import com.yhsoft.buyer.entity.BuyerOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单 Mapper 接口
 * </p>
 *
 * @author yyyyyyyh
 * @since 2023-09-26
 */
public interface BuyerOrderMapper extends BaseMapper<BuyerOrder> {

    IPage<VenderOrdersOutVo> getListPageByConditions(IPage<VenderOrdersOutVo> page, @Param("ew") Wrapper wrapper);

    List<Map<String, Object>> getLine(Integer companyId);

    List<CountMapPo>  getTjList(@Param("ew") Wrapper wrapper);

    List<Map<String, Object>> getLineByVender(Integer companyId);


    IPage<OrdersDyOutVo> getListPageByConditions_dy( Page<OrdersDyOutVo> page,@Param("ew") QueryWrapper<OrdersDyOutVo> wrapper);


    IPage<VenderOrdersOutVo> getListPageByConditions_query(Page<VenderOrdersOutVo> page,@Param("ew") QueryWrapper<OrdersDyOutVo> wrapper);


    IPage<OrdersDyOutVo> getListPageByConditions_query_dy(Page<OrdersDyOutVo> page, @Param("ew") QueryWrapper<OrdersDyOutVo> wrapper);


}
